# 创建管理员
from model import Admin, db


def create_admin():
    admin = Admin(username='admin', name='管理员')
    admin.password_hash('admin')
    db.session.add(admin)
    db.session.commit()


create_admin()
